package com.yenlien.traceyun.control.entity;


import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;


/**
 * 银行信息
 **/
@Entity
@Table(name = "t_bank_info")
@Data
public class BankInfo extends BaseEntity {

    @Column(name = "name")
    private String name;     //支行名称

    @Column(name = "address")
    private String address;         //地址

    @Column(name = "tel", length = 11)
    private String tel;            //联系电话

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;            //申请时间

    @Column(name = "pid", length = 20)
    private String pid;         //总行id

    @Column(name = "company_id", length = 255)
    private String companyId;            //公司id

    @Transient
    private String bankName;       //总行名字

    @Transient
    private String alias;       //简称


}
